package com.wjgl.action;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.domain.Institution;
import com.wjgl.service.InstitutionService;

public class GoUpdateInstitutionAction extends ActionSupport{
	private InstitutionService institutionService;
	private Integer id;
	private Institution institution;
	public InstitutionService getInstitutionService() {
		return institutionService;
	}
	public void setInstitutionService(InstitutionService institutionService) {
		this.institutionService = institutionService;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Institution getInstitution() {
		return institution;
	}
	public void setInstitution(Institution institution) {
		this.institution = institution;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		institution = institutionService.findInstitutionById(id);
		return SUCCESS;
	}
	
	
	

}
